import {request,uploadRequest} from '../http.js'
export const login = (data)=>{
	return request({
		url:'/api/service/user/userlogin',
		method:'POST',
		data
	})
}

// 获取用户信息 /api/wanlshop.user/getUserInfo
export const getUserInfo = (data)=>{
	return request({
		url:'/api/wanlshop.user/getUserInfo',
		method:'POST',
		data
	})
}

// 修改用户信息
export const profileUserInfo = (data)=>{
	return request({
		url:'/api/wanlshop/user/profile',
		method:'POST',
		data
	})
}


// 商城收藏列表 /api/wanlshop/product/collect
export const goodsCollect = (data)=>{
	return request({
		url:'/api/wanlshop/product/collect',
		method:'POST',
		data
	})
}

// 拼团收藏列表  /api/wanlshop/product/collect
export const groupCollectList = (data)=>{
	return request({
		url:'/api/wanlshop/product/collect',
		method:'GET',
		data
	})
}


// 服务收藏列表



// 我的足迹 /api/xiluedu.user/footer_view
export const footer_view = (data)=>{
	return request({
		url:'/api/xiluedu.user/footer_view',
		method:'POST',
		data
	})
}


/**
 * 钱包
 */
// 获取提现信息配置信息 /api/wanlshop/pay/initialWithdraw
export const initialWithdraw = (data)=>{
	return request({
		url:'/api/wanlshop/pay/initialWithdraw',
		method:'POST',
		data
	})
}
// 获取提现账号 /api/wanlshop/pay/initialWithdraw
export const getPayAccount = (data)=>{
	return request({
		url:'/api/wanlshop/pay/getPayAccount',
		method:'POST',
		data
	})
}
// 提现提交 /api/wanlshop/pay/withdraw
export const payWithdraw = (data)=>{
	return request({
		url:'/api/wanlshop/pay/withdraw',
		method:'POST',
		data
	})
}
// 余额明细 /api/recharge/moneylog
export const moneylog = (data)=>{
	return request({
		url:'/api/service/recharge/moneylog',
		method:'POST',
		data
	})
}

// 增加提现账户 /api/wanlshop/pay/addPayAccount
export const addPayAccount = (data)=>{
	return request({
		url:'/api/wanlshop/pay/addPayAccount',
		method:'POST',
		data
	})
}

// 社区代理 数据统计 
export const getDataInfo = (data)=>{
	return request({
		url:'/api/user/dataInfo',
		method:'POST',
		data
	})
}

// 服务收藏列表 
export const serviceGetlist = (data)=>{
	return request({
		url:'/api/service/follow/getlist',
		method:'POST',
		data
	})
}

// 帮助与客服 
export const helpList = (data)=>{
	return request({
		url:'/api/service/index/help',
		method:'POST',
		data
	})
}

// 意见反馈分类 
export const feedback_reasons = (data)=>{
	return request({
		url:'/api/xiluedu.feedback/feedback_reasons',
		method:'POST',
		data
	})
}
// 意见反馈 
export const feedback = (data)=>{
	return request({
		url:'/api/xiluedu.feedback/feedback',
		method:'POST',
		header:{
			"content-type":data.contentType
		},
		data:data.buffer
	})
}

// 招募技师 
export const recruitJishi = (data)=>{
	return request({
		url:'/api/user/recruitJishi',
		method:'POST',
		data
	})
}

// 领取优惠券 
export const receiveCoupon = (data)=>{
	return request({
		url:'/api/service/coupon/receive',
		method:'POST',
		data
	})
}

// 获取充值信息
export const rechargeInfo = (data)=>{
	return request({
		url:'/api/service/recharge/rechargeInfo',
		method:'POST',
		data
	})
}

// 获取系统配置 
export const getSysConfig = (data)=>{
	return request({
		url:'/api/index/getSysConfig',
		method:'POST',
		data
	})
}

// 获取系统单页
export const getSysPage = (data)=>{
	return request({
		url:'/api/xiluedu.singlepage/article',
		method:'POST',
		data
	})
}